﻿{literal}
<script type="text/javascript" language="JavaScript">
<!--

function _showstatisticclick()
{
	document.forms["intervals"].action += "&mode=0";
	document.forms["intervals"].submit();
	return false;
}

-->
</script>
{/literal}
Введите временной интервал просмотра:
<form action="index.php?module=counter" method="post" id="intervals">
<table border="0" class="control-panel">
<tr><th colspan="3">Временной интервал просмотра статистики</th></tr>
<tr valign="top"><td rowspan="2">Введите временные интервалы для просмотра статистики за нужный вам период</td><td align="right">с:</td><td align="left"><input type="text" name="day1" size="2" maxlength="2" value="{$currentDay1}">.<input type="text" name="month1" size="2" maxlength="2" value="{$currentMonth1}">.20<input type="text" name="year1" size="2" maxlength="2" value="{$currentYear1}"></td></tr>
<tr valign="top"><td align="right">по:</td><td align="left"><input type="text" name="day2" size="2" maxlength="2" value="{$currentDay2}">.<input type="text" name="month2" size="2" maxlength="2" value="{$currentMonth2}">.20<input type="text" name="year2" size="2" maxlength="2" value="{$currentYear2}"><br><input type="submit" value="Показать статистику" class="flat-btn"></td></tr></tr>
</table>
</form>
{stat action="GETITEMSCNT" varname="cnt"}
{if $smarty.get.pageNum neq null}
{assign var="p" value=$smarty.get.pageNum-1}
	{stat action="GETITEMS" varname="list" start=$p*15 count=15}
{else}
{assign var="p" value=0}
	{stat action="GETITEMS" varname="list" start=0 count=15}
{/if}
Отчет за период: <!-- <em><strong>{$list[0].date|date_format:"%d.%m.%y %H:%M:%S"} - {$list[$last].date|date_format:"%d.%m.%y %H:%M:%S"}</strong></em> -->(фильтр)<br>
Всего записей: {$cnt}<br>
Записей за указанный период: {$RowsCount}
{pager urlVar="pageNum" perPage="15" totalItems=$cnt varname="pager"}
<div align="center">{$pager[0].all}</div>
<table border="0" class="rows"  cellpadding="1" cellspacing="1">
<tr><th>#</th><th width="15%">Дата<br></th><th>Последний заход</th><th>Сессия</th><th>Откуда пришел</th><th>Страница</th><th>IP</th><th>User Agent</th></tr>
{foreach from=$list item=arow name=cstat}
<tr class="{cycle values="oddRow,evenRow" name="cstat"}"><td>{$smarty.foreach.cstat.iteration+$p*15}</td><td>{$arow.date|date_format:"%d.%m.%y %H:%M:%S"}</td><td>{$arow.lastVisited|date_format:"%d.%m.%y %H:%M:%S"}</td><td><a href="index.php?module=counter&action=userhistory&csid={$arow.csid}">{$arow.csid|truncate:10}</a></td><td><a href="{$arow.reffer}" target="_blank">{$arow.reffer}</a></td><td><a href="{$arow.URL}" target="_blank">{$arow.URL}</a></td><td><a href="index.php?module=counter&action=userhistory&IP={$arow.IP}">{$arow.IP}</a></td><td title="{$arow.userAgent}">{$arow.userAgent|truncate:30}</td></tr>
{/foreach}
</table>
<div align="center">{$pager[0].all}</div>
